For Developers

Update Source

PATCH https://ed.link/api/v2/teams/:team_id/sources/:source_id

Updates source configuration fields, active state, or attached transformations.

Permissions

Requires either the sources.create or sources.update system permission.

Parameters

ParameterTypeRequiredDescription
:team_idUUIDYesThe ID of the team.
:source_idUUIDYesThe ID of the source.

Request Body

PropertyTypeRequiredDescription
nameStringNoUpdated display name.
configurationObjectNoUpdated provider connection parameters and credentials.
internalObjectNoInternal configuration flags.
propertiesObjectNoCustom provider settings and feature flags.
transformation_idsArrayNoList of transformation IDs attached to this source.
tokenStringNoUpdated API access token or refresh token.
stateStringNoSource operational state (e.g. active, paused, unconfigured).

Sample Request

const response = await axios.patch(
    `https://ed.link/api/v2/teams/${team_id}/sources/${source_id}`,
    {
        name: 'Oakridge School District - Secondary LMS',
        state: 'active'
    },
    {
        headers: {
            authorization: `Bearer ${user_session_token}`,
            'content-type': 'application/json'
        }
    }
);

Sample Response

{
    "$data": {
        "id": "7b5a19cb-9ea8-4b71-9b16-564ec5ea0b12",
        "name": "Oakridge School District - Secondary LMS",
        "state": "active",
        "updated_date": "2024-06-21T11:00:00.000Z"
    }
}