Skip to main content
PUT
/
v2
/
private
/
user
/
fundraiser
/
{id}
/
team
/
{teamId}
Update Team
curl --request PUT \
  --url https://api.crowdchange.dev/v2/private/user/fundraiser/{id}/team/{teamId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>",
  "name": "<string>",
  "amount_goal": 123,
  "description": "<string>",
  "image": "<string>"
}
'
{
  "id": 1,
  "name": "Team A",
  "description": "Team description",
  "image": "1eaf5ab2-5d55-11ee-82ef-001c42584fa2",
  "amount_goal": 1000,
  "amount_raised": 550,
  "amount_raised_formatted": "$550",
  "url": "https://demo.crowdchange.dev/1/team/2",
  "language": "en",
  "n_pages": 50,
  "images": {
    "original": "https://img.crowdchange.co/files/abc.png?tr=w-[width],h-[height]"
  },
  "fundraiser": {
    "id": 1,
    "name": "Gala Night",
    "amount_goal": 10000,
    "amount_raised": 8000,
    "amount_raised_formatted": "$8,000",
    "url": "https://demo.crowdchange.dev/1",
    "language": "en",
    "organization": {
      "id": 1,
      "name": "Crowdchange",
      "custom_id": "CrowdchangeID"
    }
  },
  "user": {
    "name": "John Snow",
    "first_name": "John",
    "last_name": "Snow",
    "title": "Mr."
  }
}

Path parameters

id
integer
required
Campaign ID.
teamId
integer
required
Team ID.

Body

token
string
required
User’s access token.
name
string
Team’s name
amount_goal
number
Team’s goal amount
description
string
Team’s description
image
string
Team’s image ID

Response

Returns the updated object with the following fields.
id
integer
Team ID.
name
string
Team name.
description
string
Team description
image
string
Team image ID
amount_goal
number
Goal amount.
amount_raised
number
Amount raised by the team.
amount_raised_formatted
string
Formatted amount raised by the team, includes currency symbol.
url
string
URL to team’s page.
language
string
Team language. Allowed values: en, fr
n_pages
integer
Number of pages.
images
object
fundraiser
object
Campaign that team belongs to.
user
object
Other responses
StatusDescription
400Bad Request
403Forbidden
{
  "id": 1,
  "name": "Team A",
  "description": "Team description",
  "image": "1eaf5ab2-5d55-11ee-82ef-001c42584fa2",
  "amount_goal": 1000,
  "amount_raised": 550,
  "amount_raised_formatted": "$550",
  "url": "https://demo.crowdchange.dev/1/team/2",
  "language": "en",
  "n_pages": 50,
  "images": {
    "original": "https://img.crowdchange.co/files/abc.png?tr=w-[width],h-[height]"
  },
  "fundraiser": {
    "id": 1,
    "name": "Gala Night",
    "amount_goal": 10000,
    "amount_raised": 8000,
    "amount_raised_formatted": "$8,000",
    "url": "https://demo.crowdchange.dev/1",
    "language": "en",
    "organization": {
      "id": 1,
      "name": "Crowdchange",
      "custom_id": "CrowdchangeID"
    }
  },
  "user": {
    "name": "John Snow",
    "first_name": "John",
    "last_name": "Snow",
    "title": "Mr."
  }
}