Label Numbers

I’ve bene using the API to set labels on the Organisations. It seems like I need to send it a number sometimes instead of the label.

So from what I can tell, when there is no label set, sending the string value of the label seems to set it fine. After that I get errors telling me I must use the number. The only way I’ve been able to find this number is to manual set the label on an Organisation, then request it on the API and see what it says the number is. Is there a better way than this?

Unfortunately I can’t think of another way at the moment. It’s to do with the difference of POST and PUT since POST doesn’t require the ID number (since it hasn’t been created yet), but PUT does require the (then created) ID so that there’s no accidental duplication being done.

Hi there @David is there any chance you can help me with setting the Label on an Organization ?Capture d’écran, le 2020-02-19 à 14.09.38|690x387

I am using the endpoint : /organizations/{org_id}
With this data in the body : {“label”: 9018}

Why am I receiving an error 500?

1 Like