aarya2703
5 years agoVisitor
Project Put using Registry API
Team ,
i am working on testing api calls, where the GET method is working with my account to download projects, domains and apis, but when trying to make PUT request using the same key, it says 403 forbidden
curl --location --request PUT 'https://api.swaggerhub.com/projects/org/ayyagari-test/id/test-value' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <my key>' \
--header 'Content-Type: text/plain' \
--data-raw '{
"groupId": "ayyagari-test",
"projectId": "test-value",
"name": "string",
"apis": [
{
"owner": "ayyagari-test",
"name": "test-value",
"version": "string"
}
],
"domains": [
{
"owner": "ayyagari-test",
"name": "test-domain",
"version": "string"
}
]
}'