Skip to main content
PATCH
/
user
/
settings
/
tradeurls
/
{id}
Update trade URL
curl --request PATCH \
  --url https://api.skinshark.gg/user/settings/tradeurls/{id} \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '
{
  "url": "<string>",
  "isPrimary": true
}
'
{
  "requestId": "<string>",
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "url": "<string>",
    "steamId": "<string>",
    "personaName": "<string>",
    "avatarUrl": "<string>",
    "profileUrl": "<string>",
    "isPrimary": true,
    "createdAt": "<string>"
  },
  "error": {
    "code": 1500,
    "key": "INSUFFICIENT_BALANCE",
    "message": "Insufficient balance"
  }
}

Authorizations

api-key
string
header
required

Your raw API key. Generate, rotate, and revoke keys from the merchant dashboard. Keys can optionally be bound to one or more allowed source IPs — requests from any other IP are rejected with API_KEY_IP_DENIED.

Headers

On-Behalf-Of
string

Sub-user UUID or the merchant's externalId for that sub-user. Required for sub-user-context routes; rejected (via requireMerchant) on merchant-context routes.

Required string length: 1 - 128

Path Parameters

id
string<uuid>
required

Body

application/json

Provide at least one of url or isPrimary.

url
string
Pattern: ^https:\/\/(www\.)?steamcommunity\.com\/tradeoffer\/new\/?
isPrimary
boolean

Response

OK.

requestId
string
required
success
boolean
required
data
object

Present when success: true. Shape varies per endpoint.

error
object