Hello!
I’ve been pulling projects, playlists, versions from shotgun without any problems with the REST APIs, but I’m not stuck trying to create a new Note to a specific version.
I’m able to successfully create a new project entity with
POST
{{host}}/api/v1/entity/projects
Body:
{ "name":"test project", "sg_status":"Active", "users":[ {"type":"HumanUser", "id":18} ] }
But if i go to the appropriate version (version id=7255), and try something similar, it fails:
POST
{{host}}/api/v1/entity/versions/7255
Body:
{ "name": "new comment from API!!!!!", "sg_status":"Active", "users":[ {"type":"HumanUser", "id":89} ] }
with the error:
{ "errors": [ { "id": "2e3153322c3b31408849f85abb8b64b0", "status": 400, "code": 103, "title": "Request Parameters invalid.", "source": { "revive": [ "revive is missing", "revive must be true" ] }, "detail": null, "meta": null } ] }
I also tried adding the query param revive=true
, and don’t get errors, but the create Note on version 7255 is not working, with this response:
{ "data": { "type": "Version", "id": 7255 }, "links": { "self": "/api/v1/entity/versions/7255" }, "meta": { "did_revive": false } }
I’m sure I’m missing something simple here, but I’m just getting started with the REST APIs.
Any suggestions on what I’m doing wrong?
Thanks in advance!