PUT
/
collections
/
{collectionId}
curl --request PUT \
  --url https://api.portkey.ai/v1/collections/{collectionId} \
  --header 'Content-Type: application/json' \
  --header 'x-portkey-api-key: <api-key>' \
  --data '{
  "name": "<string>"
}'
{}

Authorizations

x-portkey-api-key
string
header
required

Path Parameters

collectionId
string
required

ID or slug of the collection

Body

application/json
name
string
required

New name for the collection

Response

200
application/json
OK

The response is of type object.