[Postman REST API] Failed to convert String to UUID
Hello,
I’m new to Collibra and APIs and i’m testing Collibra Catalog Database Registration API.
I have installed Postman, managed to add a database,define metadata configuration rules but the request is returning a 400 code after running the synchronisation call (/databases/{databaseId}/synchronizeMetadata)
The error message is : “Failed to convert value of type ‘java.lang.String’ to required type ‘java.util.UUID’; nested exception is java.lang.IllegalArgumentException: Invalid UUID string: {databaseId}”
attached bellow a screenshot of the parameter and body of my POST request.
Any idea what can i do to solve this error?
Thank you in advance.
BR,
Hajar
hajarmargad
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
3 comments
arthurburkhardt
·3 years ago · EditedYou’re welcome
You should use path parameters, instead of query parameters: Building requests | Postman Learning Center
hajarmargad
OP3 years ago · EditedThank you Arthur for your reply, i didn’t pay attention that the domain was visible , i have updated the screenshots.
I’m following the Collibra documentation mentionning the database id as a parameter
is there a way to pass the database id as param on postman instead of putting it directly on the url?
Thank you
arthurburkhardt
·3 years ago · EditedYou incorrectly pass the
databaseIdas a parameter instead of replacing it in the url of the endpoint.It should be
/rest/catalogDatabase/v1/databases/cfe2311f-814c-41db-8982-12265f66846a/synchronizeMetadatainstead of/rest/catalogDatabase/v1/databases/{databaseId}/synchronizeMetadata/databaseId=cfe2311f-814c-41db-8982-12265f66846aAlso be careful about sharing the domain of your client on a public forum, they might consider that as a security issue. I would recommend you edit the screenshots before posting them here.