Skip to main content
StickyF.A.Q.

API Reference > Phases

  • September 26, 2023
  • 2 replies
  • 195 views
API Reference > Phases
Lais Laudari

Do you need help with your API queries and/or mutation?

Here are a few that might help you!😉


🔎Queries

📍SHOW PHASE
{
 phase(id: XXX) {
 id
 name
 cards_count
 cards {
 edges {
 node {
 id
 title
 }
 }
 }
 fields {
 id
 }
 }
}

📍SHOW ALL PHASES FROM PIPE
{
pipe(id:XXXXX){
phases{
id
name
cards_count
}
}
}

🛠Mutations

📍CREATE PHASE
mutation {
 createPhase(
 input: {
 pipe_id: XXXX
 name: "First Phase"
 done: false
 lateness_time: 172800
 description: "XXXXXXXXXX"
 can_receive_card_directly_from_draft: true
 }
 ) {
 phase {
 id
 name
 }
 }
}

📍UPDATE PHASE
mutation {
 updatePhase(
 input: {
 id: XXXXXXX
 name: "New name"
 done: true
 description: "New phase description"
 can_receive_card_directly_from_draft: false
 }
 ) {
 phase {
 id
 name
 }
 }
}

📍DELETE PHASE

mutation {
 deletePhase( input: { id: XXXX }) {
 success
 }
}

 

📍CREATE PHASE FIELD

mutation {
 createPhaseField(
 input: {
 phase_id: XXXXX
 type: "radio_horizontal"
 label: "Did you finish the task?"
 options: ["Yes", "No"]
 description: "XXXX"
 required: true
 editable: false
 }
 ) {
 phase_field {
 id
 label
 }
 }
}

 

📍UPDATE PHASE FIELD

mutation {
 updatePhaseField(
 input: {
 id: "did_you_finish_the_task"
 label: "Have you finished the task?"
 options: ["Yep", "Nope"]
 required: false
 editable: true
 }
 ) {
 phase_field {
 id
 label
 }
 }
}

 

📍DELETE TE PHASE FIELD
mutation {
 deletePhaseField(input: {id: "did_you_finish_the_task"}){
 success
 }
}

Did this topic help you find an answer to your question?

2 replies

marcosmelo
Forum|alt.badge.img+18
  • Pipefy Legend
  • 1465 replies
  • September 26, 2023

👏👏👏


Ezequiel Souza
Forum|alt.badge.img+14

Thanks for sharing


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings