POST /:target/:target_id/api_keys
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
target | string | Yes | Resource type: orgs or blobs. |
target_id | string | Yes | The unique ID of the target resource. |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
role | string | Yes | read or write. |
description | string | No | Description of the key’s purpose. |
Response
| Parameter | Type | Description |
|---|---|---|
api_key | object | The created API key object including the secret. |

