question

chrisk avatar image
chrisk asked

REST API reference for segment creation/updates and Cloudscript uploads/deployment?

Hi.


Is there any REST API documentation for creating/updating user segments and for uploading/deploying Cloudscripts?

Currently, segment and cloud script updated have to be manually pushed which is a potential source of user error as we have a dev and live sandbox to protect the live environment. Therefore, we're implementing systems to automate user segment and Cloudscript updates based on declarative model but we can't find any information on the necessary REST API calls required.

if it's not exposed, I'd like to put in a feature request to have that feature added?

apis
10 |1200

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

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Currently REST APIs for Player Segment creation/update are not exposed, you can make a feature request about it if you like.

About CloudScript uploading/deploying, we do have a Admin/UpdateCloudScript for this:

https://docs.microsoft.com/zh-cn/rest/api/playfab/admin/server-side-cloud-script/updatecloudscript?view=playfab-rest

In addition, we also support Github integration that helps to automate & manage your CloudScript revisions, for more details please see:

https://docs.microsoft.com/en-us/gaming/playfab/features/automation/cloudscript/quickstart#github-integration

10 |1200

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.