POST
/
api
/
v1
/
guidelines
curl --request POST \
  --url https://api.quackai.com/api/v1/guidelines/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "repo_id": 123,
  "order": 0,
  "github_token": "<string>",
  "title": "<string>",
  "details": "<string>"
}'
{
  "id": 123,
  "repo_id": 123,
  "title": "<string>",
  "details": "<string>",
  "order": 1,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
repo_id
integer
required
Required range: x > 0
title
string
required
Required string length: 3 - 100
details
string
required
Required string length: 6 - 1000
order
integer
default:0
Required range: x >= 0
github_token
string

Response

201
application/json
Successful Response
repo_id
integer
required
title
string
required
Required string length: 6 - 100
details
string
required
Required string length: 6 - 1000
order
integer
required
Required range: x >= 0
id
integer
created_at
string
updated_at
string