Asset create api not working #127
Closed
rajeevsathish
started this conversation in
General Discussions
Replies: 1 comment 3 replies
-
@rajeevsathish above info not sufficient to help. Can you share the content service log while calling above API to help you. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to create a certificate by using the following API but it is not working
giving a response as Bad request
curl --location 'https://dev.sunbirded.org/api/asset/v1/create' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer <Authorization>' \ --header 'x-authenticated-user-token: <x-authenticated-user-token>' \ --header 'X-Channel-ID: <channelID>' \ --data '{ "request": { "asset": { "name": "Single", "code": "Single", "contentType": "Asset", "createdBy": "155ce3c5-713e-4749-bc1c-95d09c640914", "mimeType": "image/svg+xml", "license": "CC BY 4.0", "primaryCategory": "Certificate Template", "mediaType": "image", "certType": "cert template layout", "channel": "<channelID>", "language": [ "English" ] } } }'
cc: @vinukumar-vs , @Krishnaj20 , @ pallakartheekreddy
Beta Was this translation helpful? Give feedback.
All reactions