跳转到主要内容
POST
Creates an API key for the authenticated service provider.

授权

X-API-Key
string
header
必填

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.

请求体

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.

Name
string

A name to identify the key by. Required.

示例:

"CI pipeline"

Description
string | null

What the key is for.

Scopes
enum<string>[]

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
示例:

响应

OK

StatusCode
enum<integer>
可用选项:
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
IsSuccess
boolean
Data
object

The created key. KeyValue is returned here and nowhere else, ever.

DataContext
object | null
示例:

null

Notifications
object[]