Update Activity Type — Guide

First-request guide for Update Activity Type.

API GUIDE

Update Activity Type

Update Activity Type

PUT/activity_type/{activityTypeId}JSONAuthentication required

Overview

Update an existing activity type on your Demandbase tenant. Use the activity type ID in the URI (via `PUT /activity_type/{activityTypeId}`).

Call the endpoint

Send a PUT request to /activity_type/{activityTypeId} with the required authentication and parameters.

Build the request body

Use the JSON shape below and replace example values with your data.

Inspect the response

Use the success response shape to validate the fields your integration receives.

Quickstart

Follow these two steps to make a request and recognize a successful response.

STEP 1

Make a request

REQUEST
curl --request PUT \
  --url https://uapi.demandbase.com/import/v1/activity_type/1 \
  --header "Authorization: Bearer $DB_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"activityType":{"label":"example","name":"example","description":"example"},"fields":[{"fieldName":"example","fieldDataType":"example","defaultField":true,"isRequiredForCsvImport":true}]}'
STEP 2

Read the response

SUCCESS RESPONSE · HTTP 200
{
  "id": 1,
  "label": "example"
}

Request anatomy

Build the request from the method, path, parameters, and payload described below.

Parameters

NameLocationTypeRequiredDescription
activityTypeIdpathinteger (int64)Required

Request body

No fields are defined for this payload.

Response anatomy

The endpoint returns 200 for the documented success case. Inspect the response fields below.

The response schema does not enumerate fields; inspect the example response and status code.

Rules

  • Use PUT with the path /activity_type/{activityTypeId}.
  • Required inputs: activityTypeId.
  • Authenticate every request with a valid Demandbase access token.
  • Send the request body as application/json.

Filters

The published schema exposes the following endpoint inputs. Use the location column to place each value correctly.

NameLocationTypeRequiredDescription
activityTypeIdpathinteger (int64)Required

Errors

Handle non-success responses explicitly so your integration can report actionable failures.

StatusMeaning
400Request failed.
404Request failed.
500Request failed.

Next steps

Try the quickstart

Start with the request example, then replace the sample values with your credentials and data.

Return to the API area

Back to activities-management

Back to top