Update an API
PUT
/apis/{apiId}
API
api
object which should have the fields to be updated. Only name
, summary
and description
fields can be edited for an API.api
object with all the details related to the created API, namely, id
, name
, summary
, description
etc.Requires API Key as X-Api-Key
request header orapikey
URL query parameter.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://api.getpostman.com/apis/' \
--header 'Content-Type: application/json' \
--data-raw '{
"api": {
"description": "This is an updated Description",
"name": "New name"
}
}'
Response Response Example
{
"api": {
"createdAt": "2019-02-12T19:34:49.000Z",
"createdBy": "5665",
"description": "This is a description.",
"id": "387c2863-6ee3-4a56-8210-225f774edade",
"name": "Sync API",
"summary": "This is a summary",
"updatedAt": "2019-02-12T19:34:49.000Z"
}
}
Request
Path Params
apiId
string
required
Body Params application/json
Responses
Modified at 2023-08-15 05:41:03