For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
3 2 2 2

SEQ-case-create-organisation: Save a case: Organisation

when calling the API function on postman or C# I get an error


{

"error": "INVALID_CUSTOM_FIELD",

"cause": "Custom fields which are not defined for the group cannot be used. Available custom fields are provided in the group's case template."

}



{

"groupId": "{ {group-id}}",

"entityType": "ORGANISATION",

"providerTypes": [

"WATCHLIST"

],

"name": "Apple",

"customFields": [

{

"typeId": "{ {custom-field-1}}",

"value": "custom field 1 sample value"

},

{

"typeId": "{ {custom-field-2}}",

"value": "custom field 2 sample value"

},

{

"typeId": "{ {custom-field-3}}",

"value": "mandatory custom field sample value"

}

],

"secondaryFields": [

{

"typeId": "SFCT_6",

"value": "USA"

}

]

}




world-checkworld-check-oneerror-400
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
1.3k 4 1 2

@fadi.alsayyed


Can you remove the entire custom fields array and retry the request, copying the payload below for your reference:


{

"groupId": "{ {group-id}}",

"entityType": "ORGANISATION",

"providerTypes": [

"WATCHLIST"

],

"name": "Apple",

"secondaryFields": [

{

"typeId": "SFCT_6",

"value": "USA"

}

]

}

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.