Writing
Arrange
package main
import ( "fmt" "strings" "net/http" "io")
func main() {
url := "http://localhost:3000/api/v1/boards/example/arrange"
payload := strings.NewReader("{ \"cards\": [ \"example\" ], \"layout\": \"grid\", \"frame\": { \"id\": \"example\", \"title\": \"example\" }, \"columns\": 1, \"order\": \"given\", \"fit\": false }")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>") req.Header.Add("Content-Type", "application/json")
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/boards/example/arrange';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"cards":["example"],"layout":"grid","frame":{"id":"example","title":"example"},"columns":1,"order":"given","fit":false}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/api/v1/boards/example/arrange \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cards": [ "example" ], "layout": "grid", "frame": { "id": "example", "title": "example" }, "columns": 1, "order": "given", "fit": false }'Lays the named cards out as a grid or in columns by status, below what is on the board
or in a frame that grows to hold them, or takes their size with fit. Nothing else
moves.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”object
Responses
Section titled “Responses”Successful Response
object
One element; fields that do not belong to its kind are left out of the answer.
object
Example
{ "elements": [ { "kind": "card", "editable": false } ]}No key, or a key that stopped working
Every error of v1; clients must ignore codes they do not know.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The key may not do this, or keys are switched off
Every error of v1; clients must ignore codes they do not know.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}Not found, or not among what the key reaches
Every error of v1; clients must ignore codes they do not know.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}The request does not match the schema
Every error of v1; clients must ignore codes they do not know.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}Over a budget; see Retry-After
Every error of v1; clients must ignore codes they do not know.
object
object
Example generated
{ "error": { "code": "example", "message": "example" }}