How do I find the ID of the custom field to make an API call?

Hans.Mayer
Hans.Mayer EN Basic Posts: 1 New Here
edited November 2022 in Ask the Community

Hi together i want to make an api call to the custome field but i don't find the ID of the custom field how can i get them. I have a Text field with name test but it have to be a number perhaps somebody can help

https://developers.meistertask.com/reference/get-custom-field

Best Answer

  • Miša Hennin
    Miša Hennin Admin, MeisterLobster, EN Business Posts: 1,652 Community Admin
    Answer ✓

    Hi Hans and welcome to the Community 😄.

    The way to get the custom field ID is to get all custom fields for a task. To do this, please follow the link here.

    Once you've done this, you'll have the custom field IDs which you can then either add under the Get query or under the Put query, depending on what you want to do.

    The Get query will give you the content of the custom field, whereas the Put query lets you change it.

    Use this query to get the custom field IDs by using the task ID.

    And then either this query again to get the custom field's current input or this to change / add an input for the custom field.

    I hope this helps and please don't hesitate to ask if you have any questions!

    Best,

    Miša