Create PAK
POST/v2/pats
Create PAK
Request
- application/json
Body
required
description stringrequired
Description of the PAT
expiresAt int64
Expiration date in epoch format (milliseconds). When null, token never expires.
Responses
- 201
- 400
- 401
- 403
- 404
Created
- */*
- Schema
- Example (from schema)
Schema
token stringrequired
lastUsedAt int64
expiresAt int64
createdAt int64required
updatedAt int64required
description stringrequired
id int64required
{
"token": "string",
"lastUsedAt": 0,
"expiresAt": 0,
"createdAt": 0,
"updatedAt": 0,
"description": "string",
"id": 0
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string
Loading...