Skip to main content
PUT
/
lists
/
{listId}
Update a shopping list by ID
curl --request PUT \
  --url https://api.fabric.inc/v3/lists/{listId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-fabric-channel-id: <x-fabric-channel-id>' \
  --header 'x-fabric-tenant-id: <x-fabric-tenant-id>' \
  --data '{
  "attributes": {
    "key": "value"
  },
  "listType": "type1",
  "name": "list1",
  "notes": "note11",
  "userId": "user1"
}'
{
  "attributes": {
    "key": "value"
  },
  "createdAt": "2022-11-22T10:26:38Z",
  "itemCount": 1,
  "listId": "62fa3796841ea417fa71d2a9",
  "listType": "type1",
  "name": "list1",
  "notes": "note11",
  "updatedAt": "2022-11-22T10:26:38Z",
  "userId": "user1"
}

Authorizations

Authorization
string
header
required

Headers

x-fabric-tenant-id
string
required
x-fabric-channel-id
string
required
x-fabric-request-id
string

Path Parameters

listId
string
required

Body

application/json
name
string
required
Example:
userId
string
required
Example:
attributes
object
Example:
listType
string
Example:
notes
string
Example:

Response

name
string
required
Example:
userId
string
required
Example:
attributes
object
Example:
createdAt
string<date-time>
Example:
itemCount
integer
Required range: x >= 0
Example:
listId
string
Example:
listType
string
Example:
notes
string
Example:
updatedAt
string<date-time>
Example: