Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Resolved Web API for updating build files via AWS S3 Bucket

Discussion in 'Game Server Hosting' started by Brogan89, Jun 5, 2023.

  1. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    I'm using Amazing S3 for Multiplay builds. Which is working great.
    However, I still need to update the build files manually.
    I'm hoping a Web API can be exposed for this step.

    Cheers.
     
  2. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243
    I managed to work it out.

    POST https://services.unity.com/api/multiplay/builds/v4/projects/{{projectId}}/environments/{{environmentId}}/builds/{{buildId}}/versions

    Headers:
    Code (JavaScript):
    1. Authorization: Bearer ...
    Payload:
    Code (JavaScript):
    1. {
    2.     "forceRollout": false,
    3.     "s3":{
    4.         "s3URI": "S3://...",
    5.         "accessKey": "{{accessKey}}",
    6.         "secretKey": "{{secretKey}}"
    7.     }
    8. }

    Response:
    202
    {}
     
    jackward84 likes this.
  3. Brogan89

    Brogan89

    Joined:
    Jul 10, 2014
    Posts:
    243