Put Media Item API Error

I want to upload pdf to mediaset via “Put Media Item” API.

API document links are here ( Put Media Item • API Reference • Palantir)

My request curl command is here.

curl --location 'https://<redacted>.palantirfoundry.com/api/v2/mediasets/{MediasetRID}/items?mediaItemPath=a.pdf&preview=true' \
--header 'Content-Type: application/octet-stream' \
--header 'Authorization: Bearer MyToken' \
--data-binary '@/D:/<redacted>/test/a.pdf'

When I post a request to server, then foundry responde as likes below.

{
    "errorCode": "INTERNAL",
    "errorName": "Default:Internal",
    "errorInstanceId": "8c79956b-bc30-455e-9d95-d6dcca6876ef",
    "parameters": {}
}

Have you ever experience this error likes me? or Where can I check the detail error message using errorInstanceId?

Please let me know.

Thanks.

Hello Cho,

I think this is the Dev AIP license you only get 60 objects error. Rep or Engineer will be able to confirm this.

The payload needs to contain a transaction ID. I don’t have an example at hand, but you can try with a transactionless mediaset.

When I post a request with transactionId, the api respond error message.

curl --location ‘https://{hostname}/api/v2/mediasets/{mediasetrid}/items?mediaItemPath=a.pdf&preview=true&transactionId=111111’ \

–header ‘Content-Type: application/octet-stream’ \

–header ‘Authorization: Bearer ReceivedoAuthToken’ \

–data-binary ‘@/D:/awork/test/a.pdf’

{
“errorCode”: “INVALID_ARGUMENT”,
“errorName”: “Default:InvalidArgument”,
“errorInstanceId”: “3d14cb4b-f527-42f7-b995-26a1322d8cab”,
“parameters”: {}
}