Skip to content

Modify a product (addToken)

PUT
/product/modify/{action}

Grants a token access to a product with the specified permissions. Requires maintainer or admin access.

Authorizations

ApiKeyAuth

API token obtained via the /register endpoint. Pass as the X-Api-Token header on every request.

Type
API Key (header: X-Api-Token)

Parameters

Path Parameters

action*

Must be addToken.

Type
string
Required
Valid values
"addToken"

Request Body

application/json
JSON
{
  
"product": "my-lib",
  
"token": "a3f9b2c1...",
  
"permissions": {
  
  
"maintainer": false,
  
  
"download": true,
  
  
"upload": false,
  
  
"delete": false
  
}
}

Responses

Token added.

Samples

Powered by VitePress OpenAPI