Using endpoint: /:project_id/folders/:folder_id/contents
I can access the item/file version via
relationships-tip-data-id like
*urn:adsk.wipprod:fs.file:AAA?version=X
which also provides
**urn:adsk.wipprod:dm.lineage:ZZZ
.
Using endpoint: /:project_id/versions:batch-get
I can add these to the request body
*urn:adsk.wipprod:fs.file:AAA?version=X
**urn:adsk.wipprod:dm.lineage:ZZZ . .
and successfully list the custom attributes, even when no custom attrbutes exist yet (empty list).
.
That's where my success ends.
Endpoint: /:project_id/versions/:version_id/custom-attributes:batch-update where I use *urn:adsk.wipprod:fs.file:AAA?version=X as version_id and, what appears to be valid attributes body with the request results in
status code 404 - not found.
Why?
*urn:adsk.wipprod:fs.file:AAA?version=X was valid as part of the body of endpoint: /:project_id/versions:batch-get
Why is it not valid for endpoint:
/:project_id/versions/:version_id/custom-attributes:batch-update
Using endpoint: https://developer.api.autodesk/data/v1/projects/:project_id/folders/:folder_id/contents
I can access the item/file version via
relationships-tip-data-id like
*urn:adsk.wipprod:fs.file:AAA?version=X
which also provides
**urn:adsk.wipprod:dm.lineage:ZZZ
.
Using endpoint: https://developer.api.autodesk/bim360/docs/v1/projects/:project_id/versions:batch-get
I can add these to the request body
*urn:adsk.wipprod:fs.file:AAA?version=X
**urn:adsk.wipprod:dm.lineage:ZZZ . .
and successfully list the custom attributes, even when no custom attrbutes exist yet (empty list).
.
That's where my success ends.
Endpoint: https://developer.api.autodesk/bim360/docs/v1/projects/:project_id/versions/:version_id/custom-attributes:batch-update where I use *urn:adsk.wipprod:fs.file:AAA?version=X as version_id and, what appears to be valid attributes body with the request results in
status code 404 - not found.
Why?
*urn:adsk.wipprod:fs.file:AAA?version=X was valid as part of the body of endpoint: https://developer.api.autodesk/bim360/docs/v1/projects/:project_id/versions:batch-get
Why is it not valid for endpoint:
https://developer.api.autodesk/bim360/docs/v1/projects/:project_id/versions/:version_id/custom-attributes:batch-update
Share Improve this question asked yesterday kevinkevin 92 bronze badges 2- Could you share an example API call encountering this issue? I suspect the version id you passed is not URL encoded. Taking your "urn:adsk.wipprod:fs.file:AAA?version=X" as an example. It should be "urn%3Aadsk.wipprod%3Afs.file%3AAAA%3Fversion%3DX" when passing to the API. – Eason Kang Commented 2 hours ago
- Thx EK .. 100% - that solved it ... – kevin Commented 1 hour ago
1 Answer
Reset to default 0The version_id must be URL encoded