내 커뮤니티 업적 표시줄을 확대합니다.

해결됨

How to change the lifecycle status of cloned audience from draft to published

Avatar

Level 1

Hi All,

 

I copied one of my audience which was created by build rule method and the lifecycle status of the cloned audience shows up as Draft. How can i change the lifecycle status from Draft to Published?

 

Thanks,

Swastika

주제

토픽은 커뮤니티 콘텐츠를 분류하여 관련성 있는 콘텐츠를 찾는 데 도움이 됩니다.

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Community Advisor

Hello @swastika_lal,

 

To update the state , call the following API call:


GET https://platform.adobe.io/data/core/ups/segment/definitions/:SEGMENT_ID

 

This request will return information about the segment in question. Please copy the entire response.

 

Next, Update the segment's status, make the following API request:


PATCH https://platform.adobe.io/data/core/ups/segment/definitions/:SEGMENT_ID


In the body of this request, paste the previously copied response, but modify the `"lifecycleState"` from `"draft"` to `"published"`.

For additional details, please refer to the documentation here:
[https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/api/segment-definitions#...)

 

Best regards,
Arpan

원본 게시물의 솔루션 보기

6 답변 개

Avatar

정확한 답변 작성자:
Community Advisor

Hello @swastika_lal,

 

To update the state , call the following API call:


GET https://platform.adobe.io/data/core/ups/segment/definitions/:SEGMENT_ID

 

This request will return information about the segment in question. Please copy the entire response.

 

Next, Update the segment's status, make the following API request:


PATCH https://platform.adobe.io/data/core/ups/segment/definitions/:SEGMENT_ID


In the body of this request, paste the previously copied response, but modify the `"lifecycleState"` from `"draft"` to `"published"`.

For additional details, please refer to the documentation here:
[https://experienceleague.adobe.com/en/docs/experience-platform/segmentation/api/segment-definitions#...)

 

Best regards,
Arpan

Avatar

Level 1

Thanks @arpan-garg ! I tried this out and it works as expected.

Avatar

Level 2

Is there a way to do this via the front-end UI?

Other users may not have access to the API or feel comfortable to use it so doing it on the UI will be preferred.

Avatar

Community Advisor

I hope that it will be released soon with UI as well. With an API-first approach, we can at least deal with the situation quickly.

Avatar

Level 2

We ran into the same situation and this post helped. Thanks @arpan-garg !

Avatar

Level 2

Hi, @arpan-garg 

 

I hope you are doing well.

Thanks a lot for sharing this. It worked for me.

Can you please explain why we are using the segment definitions endpoint here? We can retrieve audiences using the audience endpoint, but why can't we publish the audience using audience APIs?

What is the difference between segment definitions and audience endpoints?

 

Regards,

Alksh