sites
Store Access Token
Persist a GitHub access token for the site. The token must already be issued by GitHub — Pressable does not exchange OAuth codes on your behalf, and only api.github.com is supported (GitHub Enterprise and other git providers are not). Accepted inputs are a classic Personal Access Token, a fine-grained PAT, or a GitHub OAuth access token (e.g. from a GitHub App installation).
post/sites/{site_id}/git/token
Request
- Base URLhttps://my.pressable.com/v1
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
site_idinteger required
Request body
Response
Successful Response
Example response
{
"message": "Unprocessable Entity",
"errors": [
"This site is not opted in to the new GitHub integration. Enable it in your account settings before using the git API."
]
}Changes
No recorded changes to this operation across all 2 revisions of this API.