Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Generate an API key for an existing object. This call must be made after a successful add request, using the resulting API User ID.

Request Format

RequestPOST /api/v2/api_users/generate/id
.json

Request Body

Empty JSON document (see example, this is not the same as an empty document)

Paginated?No

Response Format

HTTP Status

Response Body

Description

200 OK


Update successful

400 Bad Request

Error Response

Attribute validation failed or id not found

401 Unauthorized


Authentication required

500 Internal Server Error

Error Response

Server error

Example: Generate API Key

POST /registry/api/v2/api_key/16

.json


{
}
 
200 OK
{
  "results": {
    "api_key": "hjem-9725-udxp-2388"
  }
}


View (all)

Additional filters:

...

Code Block
GET /registry/api/v2/api_users.json?co_id=2