Creates an API key for the authenticated service provider.
Requires the Organization:write scope; keys issued with the older
ServiceProvider:write keep working. The new key’s scopes must also be a subset of the
calling key’s own, so a key can never create one more powerful than itself. Asking for a
scope the caller does not hold is rejected and names the scope.
Each requested scope is an explicit "Module:verb"; a bare module name is rejected.
The key value comes back on this response and on no other - only its hash is stored. The new
key records the key that created it, returned as ParentApiKeyId by
GET /v1/api-keys.
Autorisations
Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.
Corps
Request body for creating an API key. The owning service provider and the calling key's own scopes are resolved from the request context, not from the body.
A name to identify the key by. Required.
"CI pipeline"
What the key is for.
The scopes the new key carries, each an explicit "Module:verb". Required, and every
entry must be one the calling key already holds.
The valid values are published as the enum on this property. Verbs are independent -
write does not imply read. Note Project is singular. Scopes are stored
as published here, whatever casing is sent; the older ServiceProvider:verb is still
accepted and is stored as Organization:verb.
Organization:read, Organization:write, Organization:delete, Tickets:read, Tickets:write, Tickets:delete, Clients:read, Clients:write, Clients:delete, Contacts:read, Contacts:write, Contacts:delete, Billing:read, Billing:write, Billing:delete, Project:read, Project:write, Project:delete, Assets:read, Assets:write, Assets:delete, Alerts:read, Alerts:write, Alerts:delete, Forms:read, Forms:write, Forms:delete, Documents:read, Documents:write, Documents:delete Réponse
OK
100, 101, 102, 103, 200, 201, 202, 203, 204, 205, 206, 207, 208, 226, 300, 301, 302, 303, 304, 305, 306, 307, 308, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 421, 422, 423, 424, 426, 428, 429, 431, 451, 500, 501, 502, 503, 504, 505, 506, 507, 508, 510, 511 The created key. KeyValue is returned here and nowhere else, ever.
null