Skip to main content
POST
Rotate a repository's token

Path Parameters

session_id
string
required

Session ID

Required string length: 1 - 256
resource_id
string
required

Session resource ID

Required string length: 1 - 256

Body

application/json
authorization_token
string<password>
required

New GitHub token for the repository. Never returned.

Required string length: 1 - 4096

Response

Success

id
string
required
Required string length: 1 - 256
type
enum<string>
required
Available options:
github_repository
url
string
required
Maximum string length: 1024
Pattern: ^https:\/\/github\.com\/[A-Za-z0-9](?:[A-Za-z0-9_-]*[A-Za-z0-9])?\/[A-Za-z0-9._-]+$
mount_path
string
required
Maximum string length: 1024
Pattern: ^(?:\/(?:[^/\\.\u0000-\u001f\u007f-\u009f][^/\\\u0000-\u001f\u007f-\u009f]*|\.[^/\\.\u0000-\u001f\u007f-\u009f][^/\\\u0000-\u001f\u007f-\u009f]*|\.\.[^/\\\u0000-\u001f\u007f-\u009f]+))+$
checkout
object
required
access
enum<string>
required
Available options:
read_write,
read_only
created_at
string
required
updated_at
string
required