mcp

Set Location Reference

Persist or update a reusable Writer location reference from a D4U asset.

post/api/mcp/set_location_reference

Request

  • Base URL: https://writer.swapp1990.org (the document declares no server; this is the origin it was published from)
  • URL: https://writer.swapp1990.org/api/mcp/set_location_reference
  • Auth: none declared

Request body

job_idstring required

The story job ID.

location_namestring required

Story location name, such as Paresh Shah cabin.

design_idstring required

Durable DesignForYou design id, e.g. dsg_25627817.

urlstring nullable

Optional durable asset URL returned by DesignForYou.

location_reference_idstring nullable

Optional stable Writer id. Omit to derive one from location_name.

location_labelstring nullable

Optional label passed to DesignForYou as a context label.

promptstring nullable

Prompt used to generate or choose this location reference.

modelstring nullable

Image model that produced the reference.

template_idstring nullable

DesignForYou template id that produced the reference.

prompt_strategystring nullable

Writer location-reference prompt strategy, if known.

session_idstring nullable

DesignForYou session id, if known.

providerstring nullable

Image provider, if known.

request_idstring nullable

DesignForYou/Writer request id, if known.

source_job_idstring nullable

Transient asset job id that produced the reference, if known.

resultobject nullable

Optional generated asset result from get_asset_status.

replace_existingboolean

Replace an existing reference with the same id, name, or design_id.

Response

Successful Response

story_urlstring nullable
article_urlstring nullable
job_idstring nullable
statusstring nullable
is_terminalboolean nullable

Changes

No recorded changes to this operation across all 1 revision of this API.