Skip to main content

Edit a listing

Edit a listing using the Phosphor API.

Issue a PATCH request to the listings endpoint with an ID of the listing to edit.

PATCH https://admin-api.phosphor.xyz/v1/listings/{listing_id}

You can edit policy, start_time, end_time and campaign_id. You cannot edit the policy type.

Example payload
{
"policy": {
"type": "ALLOW_LIST",
"email_addresses": ["aaa@aaa.com", "bbb@bbb.com"]
},
"start_time": "2022-11-08T09:00:00+00:00",
"end_time": "2022-12-08T09:00:00+00:00",
"campaign_id": "762f86b9-3a45-43ef-a617-2562839a20ed"
}
Example response
{
"id": "4e339560-5c6c-495a-bfe3-0a30e3519983",
"status": "ACTIVE",
"quantity_listed": 1,
"quantity_remaining": 1,
"sale_type": "DEFAULT",
"policy": {
"type": "ALLOW_LIST",
"email_addresses": ["aaa@aaa.com", "bbb@bbb.com"],
"max_per_user": 1,
"payment_session_duration": {
"timeout_seconds": 600,
},
"email_claim_duration": 7200,
"item_assignment_strategy": "AUTOMATIC",
"tx_payer": "SELLER"
},
"start_time": "2022-11-08T09:00:00+00:00",
"end_time": "2022-12-08T09:00:00+00:00",
"collection_id": null,
"item_id": "12b4659a-0796-4021-b21e-a376494b674c",
"price": "25000",
"currency": "USD",
"settlement_currency": null,
"max_quantity_per_tx": 1,
"payment_providers": ["STRIPE"],
"campaign_id": "762f86b9-3a45-43ef-a617-2562839a20ed"
}