Planning
Read Planning
GET
/planning
package main
import ( "fmt" "net/http" "io")
func main() {
url := "http://localhost:3000/api/v1/planning"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(res) fmt.Println(string(body))
}const url = 'http://localhost:3000/api/v1/planning';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:3000/api/v1/planning \ --header 'Authorization: Bearer <token>'Stage types, people with their time off, fields and days off. A key for chosen boards reads only what those boards’ gantts use.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
PlanningOut
object
enabled
required
Enabled
boolean
types
Types
Array<object>
TypeOutobject
id
required
Id
string
name
required
Name
string
archived
required
Archived
boolean
people
People
Array<object>
PersonOutobject
id
required
Id
string
name
required
Name
string
teams
required
Teams
Array<string>
archived
required
Archived
boolean
off
required
Off
Array<object>
Awayobject
start
required
Start
string format: date
end
required
End
string format: date
fields
Fields
Array<object>
FieldOutobject
id
required
Id
string
name
required
Name
string
archived
required
Archived
boolean
days_off
Days Off
Array<string>
Example
{ "types": [], "people": [], "fields": [], "days_off": []}No key, or a key that stopped working
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}The key may not do this, or keys are switched off
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Not found, or not among what the key reaches
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}Over a budget; see Retry-After
Media typeapplication/json
Error
Every error of v1; clients must ignore codes they do not know.
object
error
required
ErrorDetail
object
code
required
Code
string
message
required
Message
string
Example generated
{ "error": { "code": "example", "message": "example" }}