Forum Discussion

aarya2703's avatar
aarya2703
Visitor
4 years ago

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"
}
]
}'

1 Reply

  • HKosova's avatar
    HKosova
    SmartBear Alumni (Retired)

    Hi aarya2703,

     

    Project-related API operations are not available for public use. There's an existing feature request to add project operations to the public Registry API, I've added your vote to it. We'll post an update when/if this gets implemented.