最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

autodesk bim360 - Status 404 not found when requesting endpoint custom-attributes:batch-update - Stack Overflow

programmeradmin3浏览0评论

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
Add a comment  | 

1 Answer 1

Reset to default 0

The version_id must be URL encoded

发布评论

评论列表(0)

  1. 暂无评论