Loading...

PUT /api/shares/{shareId}

If a transport job runs an extra day, you can extend the link the customer already uses to track the vehicles. The administrator can also change the group or device shown and the recipient’s email address.

This operation replaces the entire access configuration. Supply the new expiry time and the values to retain. The link stays the same, so the person who already received it can use it during the revised period.

Request Details

HTTP method PUT
Path /api/shares/{shareId}

The example identifiers are fictional. Use the identifiers returned by your account’s list for the resource you want to look up or change.

Request Parameters

Path parameters

ParameterTypeRequiredDescription
shareIdStringRequiredStringYesCopy the id with the shr- prefix from GET /api/shares.

Request body parameters

ParameterTypeRequiredDescription
nameStringRequiredStringYesName used to identify the access in the account.
group
deviceIdStringConditional
StringConditionalSend the public id of an account group from GET /api/groups, or a visible tracker ID from GET /api/devices. A device is required when the group is omitted. If both are present, the group takes precedence.
from
expiresDate-timeRequired
Date-timeYesStart and end of access. Use ISO 8601 timestamps with Z for UTC or an explicit offset. An unqualified time is interpreted in the time zone of the user saving the access.
timeZoneStringOptionalStringNoTime zone for times displayed to the recipient. Use a key from GET /api/users/timeZones. Defaults to the user’s time zone.
descriptionStringOptionalStringNoDescription used to identify the shared access in the account.
emailStringOptionalStringNoIf you include a valid email address, saving the access triggers an attempt to send the link to that address.

Access start and end times are saved to the minute. If you include seconds, the effective start or end is the beginning of that minute.

Authentication Required

Requires an administrator with access to Users. Demo accounts can only read shared accesses.

Send the token in the Authorization: Bearer {token} header. See Authentication.

Example Request

PUT /api/shares/{shareId} HTTP/1.1 Host: api.plaspy.com Authorization: Bearer {token} Content-Type: application/json

Example Request Body

{ "name": "Delivery window", "deviceId": "123456789012345", "from": "2027-01-12T09:00:00Z", "expires": "2027-01-12T12:00:00Z" }

Response Parameters

The Presence column describes an HTTP 200 response. Conditional fields are omitted when they have no value.

The result contains the ID, device or group, and dates in UTC. The url field contains the link the recipient can open during the access period.

FieldTypePresenceDescription
idStringAlwaysStringAlwaysPublic share ID (shr-).
nameStringAlwaysStringAlwaysName of the shared access.
emailStringConditionalStringConditionalAddress for sending the link, if configured.
descriptionStringConditionalStringConditionalDescription of the shared access, if available.
groupStringConditionalStringConditionalGroup ID when sharing a group.
deviceIdStringConditionalStringConditionalTracker ID when sharing one device.
fromDate-timeAlwaysDate-timeAlwaysStart of the access period, in UTC.
expiresDate-timeAlwaysDate-timeAlwaysEnd of the access period, in UTC.
timeZoneStringConditionalStringConditionalTime zone used to display times, if set.
urlStringConditionalStringConditionalLink the recipient can open during the access period.
creationDate-timeAlwaysDate-timeAlwaysTime the access was created, in UTC.
successBooleanAlwaysBooleanAlwaysSet to true on success.
apiUsageIntegerAlwaysIntegerAlwaysUsage units for this request.
apiDailyUsageIntegerAlwaysIntegerAlwaysAccount usage for the day before this request is added.

Example Successful Response

The sample url is shown as {url}. To share access, copy the link returned by your account.

The example shows an HTTP 200 response with selected fields.

{ "id": "shr-EfGhRXwYmK", "name": "Delivery window", "deviceId": "123456789012345", "from": "2027-01-12T09:00:00", "expires": "2027-01-12T12:00:00", "creation": "2027-01-10T15:45:00", "success": true, "apiUsage": 1, "apiDailyUsage": 24, "url": "{url}" }

Errors

HTTP statusWhen it occurs
400With errors for missing required fields, an invalid target, email address or time zone, or insufficient license capacity. If the ID is recognized but the shared access cannot be found in the account. If the request quota has been reached, error contains the reason.
401If a valid Bearer token is missing.
403If the user lacks the required permission. The reason appears in error.
404If the route or ID is unrecognized.
500An unexpected error occurred while processing the request.

In an error response that includes success, its value is false and error contains the message. Field validation failures can appear in the errors object, with a list of messages for each field.

Example Error Response

{ "success": false, "error": "Your user does not have permission to do this." }
Index
Questions?

We answer all support request within 24 business hours approximately, If you have a question that needs an immediate resolution, please contact us by other way.

We answer you in business hours, as soon as possible. We are located in Bogotá, Colombia, time zone (GMT-5).

Last modification: 2026-11-30 11:01:17