Value List Items

Value list items allow you to add specific values to a given Radar value list, which can then be used in rules.

Related guide: Managing list items

Was this section helpful?YesNo
Create a value list item
POST/v1/radar/value_list_items
Retrieve a value list item
GET/v1/radar/value_list_items/:id
List all value list items
GET/v1/radar/value_list_items
Delete a value list item
DELETE/v1/radar/value_list_items/:id

The Value List Item object

Attributes

  • idstring

    Unique identifier for the object.

  • valuestring

    The value of the item.

  • value_liststring

    The identifier of the value list this item belongs to.

More attributes

  • objectstring

  • createdtimestamp

  • created_bystring

  • livemodeboolean

The Value List Item object
{
"object": "radar.value_list_item",
"created": 1681760074,
"created_by": "API",
"livemode": false,
"value": "1.2.3.4",
}

Create a value list item

POST /v1/radar/value_list_items

Creates a new ValueListItem object, which is added to the specified parent value list.

Parameters

  • valuestringRequired

    The value of the item (whose type must match the type of the parent value list).

    The maximum length is 800 characters.

  • value_liststringRequired

    The identifier of the value list which the created item will be added to.

Returns

Returns a ValueListItem object if creation succeeds.

curl https://api.stripe.com/v1/radar/value_list_items \
-u "sk_test_Hrs6SAopgFPF0bZXSN3f6ELNsk_test_Hrs6SAopgFPF0bZXSN3f6ELN:" \
-d value_list={{VALUE_LIST_ID}} \
-d "value=1.2.3.4"
Response
{
"object": "radar.value_list_item",
"created": 1681760074,
"created_by": "API",
"livemode": false,
"value": "1.2.3.4",
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.