Skip to main content
POST
/
v1
/
server
/
sponsors
Create/Update Sponsor
curl --request POST \
  --url https://sdk-api.playcamp.io/v1/server/sponsors \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "userId": "<string>",
  "creatorKey": "<string>",
  "campaignId": "<string>",
  "isTest": false
}
'
{
  "data": {
    "userId": "<string>",
    "campaignId": "<string>",
    "creatorKey": "<string>",
    "isActive": true,
    "sponsoredAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Server API Key (format: {keyId}:{secret})

Body

application/json
userId
string
required

User ID

creatorKey
string
required

5-character creator key

campaignId
string

Campaign ID (auto-assigned to active campaign if not specified)

isTest
boolean
default:false

Test mode (does not create actual data)

Response

Success

data
object
required