메인 콘텐츠로 건너뛰기
POST
/
v1
/
server
/
sponsors
후원 등록/변경
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"
  }
}

인증

Authorization
string
header
필수

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

본문

application/json
userId
string
필수

유저 ID

creatorKey
string
필수

5자리 크리에이터 키

campaignId
string

캠페인 ID (미지정 시 활성 캠페인으로 자동 귀속)

isTest
boolean
기본값:false

테스트 모드 (실제 데이터 생성 안 함)

응답

성공

data
object
필수