[CHORE] add sample custom fields json payloads - #294
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Greptile Summary
This PR adds concrete JSON:API-shaped example request and response payloads to four custom-field documentation pages, and updates the request-body parameter tables to reflect the correct nested structure (
data.type,data.attributes.*,data.relationships.*). It also adds a clarifying note on each path-based endpoint (shipments, containers, tracking requests) explaining thatdata.relationships.entityshould be omitted because the entity is already implied by the URL.create-a-custom-field,create-shipment-custom-field,create-container-custom-field, andcreate-tracking-request-custom-field— all now include matching example request/response blocks in valid JSON:API format./custom_fieldspage now explicitly notes it is for callers that need to send the full relationship payload, while the path-based pages note that the entity relationship must not be sent.Confidence Score: 5/5
Pure documentation update — no code, migrations, or API behavior changed; safe to merge.
All four files are .mdx documentation pages. The example payloads are structurally correct JSON:API, the parameter tables accurately reflect the nested structure, and the entity-implied notes are consistent across the three path-based endpoints. No logic, schema, or runtime behavior is touched.
No files require special attention.
Important Files Changed
Sequence Diagram
%%{init: {'theme': 'neutral'}}%% sequenceDiagram participant Client participant API as Terminal49 API Note over Client,API: Option A — Path-based (entity implied) Client->>API: "POST /shipments/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Client->>API: "POST /containers/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Client->>API: "POST /tracking_requests/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Note over Client,API: Option B — Generic endpoint (full relationship required) Client->>API: POST /custom_fields with relationships.entity API-->>Client: 201 Created — custom_field resource%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%% sequenceDiagram participant Client participant API as Terminal49 API Note over Client,API: Option A — Path-based (entity implied) Client->>API: "POST /shipments/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Client->>API: "POST /containers/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Client->>API: "POST /tracking_requests/{id}/custom_fields" API-->>Client: 201 Created — custom_field resource Note over Client,API: Option B — Generic endpoint (full relationship required) Client->>API: POST /custom_fields with relationships.entity API-->>Client: 201 Created — custom_field resourceReviews (1): Last reviewed commit: "Add sample custom fields json payloads" | Re-trigger Greptile