Do you need help with your API queries and/or mutation?
Here are a few that might help you!
Queries
LIST PIPES
{
pipes(ids: pID1, ID2]) {
id
name
phases {
name
cards (first: x) {
edges {
node {
id
title
}
}
}
}
}
}
SHOW PIPE
{
pipe(id: 123456) {
id
name
start_form_fields {
label
id
}
labels {
name
id
}
phases {
name
fields {
label
id
}
cards(first: {
edges {
node {
id
title
}
}
}
}
}
}
SHOW ALL FIELDS FROM PIPE
{
pipe(id: XXXXX) {
start_form_fields {
id
internal_id
label
type
options
}
phases {
fields {
label
internal_id
type
options
}
}
}
}
Mutations
CREATE PIPE
mutation {
createPipe(
input: {
organization_id: XXXX
name: "XXXX"
labels: r
{name: "Label 01", color: "#FF0042"}
]
members: :
{user_id: 00000, role_name: "admin"}
{user_id: 00001, role_name: "member"}
]
phases: "
{name: "First Step"}
{name: "Finished", done: true}
]
start_form_fields: o
{type_id: "short_text", label: "Taks Name", editable: true}
{type_id: "email", label: "Contact Email"}
]
preferences: {
inboxEmailEnabled: true
}
}
) {
pipe {
id
name
}
}
}
UPDATE PIPE
mutation {
updatePipe(
input: {
id: XXXXX
icon: "emo"
title_field_id: "contact_email"
public: false
public_form: true
only_assignees_can_edit_cards: false
anyone_can_create_card: true
expiration_time_by_unit: 2
expiration_unit: 86400
}
) {
pipe {
id
name
}
}
}
DELETE PIPE
mutation {
deletePipe(input: { id: XXX }) {
success
}
}