- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
07-09-2019 01:46 AM
Hi Tealium Support,
I am new for Tealium IQ API and still learning. I am using Tealium IQ API (https://community.tealiumiq.com/t5/Tealium-API/Getting-Started/ta-p/14357) and following the docs. I am able to generate API key and fetch the revisions as documented (please refer API's being used below). However the API returns revisions that are deleted all the time . When i try to fetch 'details' API, i am getting response as 'That revision details does not exist'.
Steps to reproduce:
1. Execute cURL for fetching API key:
curl -X POST \ https://api.tealiumiq.com/v2/auth \ -H 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'username={email}' \
--data-urlencode 'key={api_key}'
2. Fetch revisions API: Append API key as a 'Authorization' header to 'Revisions' API (cURL below). I have gotten revisions however all of those revisions are exipired or deleted
curl -H 'Authorization: Bearer {token}' \ https://api.tealiumiq.com/v2/manifest/accounts/{account}/profiles/{profile}/revisions
3. Fetch details API: Append API key as a 'Authorization' header and {revision_id}from #2 above to 'Revision details' API (cURL below) and getting below error
curl -H 'Authorization: Bearer {token}' \ https://api.tealiumiq.com/v2/manifest/accounts/{account}/profiles/{profile}/revisions/{revision_id}/details
Error:
{
"returnCode": 1260,
"message": "That revision details does not exist"
}
Question:
1. Why Revisions API in step #2 above returns deleted or doesn't exist revisions ?
Thanks,
Chandu
02-12-2020 06:33 AM
Hi Chandu,
You are correct so far, it's likely your revision id isn't valid or the its format incorrect:
You should get something like this:
Example: {revision_id} = 202002111637 where {revision_id} = YYYYMMDDhhmm
https://api.tealiumiq.com/v2/manifest/accounts/{account}/profiles/{profile}/revisions/202002111637/details
Is this matching your revision id format?
If yes, can you try another one after publishing TIQ?
Copyright All Rights Reserved © 2008-2023