Skip to main content
F.A.Q.

How do I update the record status field via API?

  • October 24, 2023
  • 2 replies
  • 351 views
How do I update the record status field via API?
Lais Laudari

To update the status of a record via API, just follow the steps below.

👉🏼First you need to know the Status ID. The following query will give you this information:

{
  table(id: "XXXXXXXXXX") {
    statuses {
      name
      id
    }
  }
}
 

👉🏼Next, you will use the Status ID obtained to update the field of a record by executing the following mutation:

mutation {
  updateTableRecord(input: {statusId: XXXXX, id: XXXXXXXX}) {
    table_record {
      title
      status {
        name
      }
    }
  }
}

⚠To find out the record's ID, simply access the database and when you open the record identify the final number that appears in the browser's address bar.
 

Or via API by running the query below:

{
  table_records(table_id: "XXXXXXXXX") {
    edges {
      cursor
      node {
        id
        title   
      }
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
  }
}

2 replies

Júlio Andrade
  • New Member
  • 1 reply
  • September 12, 2025

Teria como eu fazer isso com varios registros ao mesmo tempo?


Alan dOliveira
Pipefy Staff
Forum|alt.badge.img
  • Pipefy Staff
  • 59 replies
  • September 15, 2025

Ola Julio boa tarde, consegue sim. Você diz dessa maneira como na imagem abaixo:
 


 


mutation {
  updateTableRecord(input: {statusId: XXXXXX, id: XXXXXX}) {
    table_record {
      title
      status {
        name
      }
    }
  }
registro2: updateTableRecord(input: {statusId: "XXXXXX", id: "XXXXXX"}) {
    table_record {
      title
      status {
        name
      }
    }
  }
  registro3: updateTableRecord(input: {statusId: "XXXXXX", id: "XXXXXX"}) {
    table_record {
      title
      status {
        name
      }
    }
  }
}