[#absl-Status-SetPayload] = xref:absl.adoc[absl]::xref:absl/Status.adoc[Status]::SetPayload :relfileprefix: ../../ :mrdocs: Sets the payload for a non‐ok status using a `type_url` key, overwriting any existing payload for that `type_url`. == Synopsis Declared in `<absl/status/status.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void SetPayload( std::string_view type_url, xref:absl/Cord.adoc[absl::Cord] payload); ---- == Description NOTE: This function does nothing if the Status is ok. == Parameters [cols="1,4"] |=== | Name| Description | *type_url* | The unique key identifying the payload. | *payload* | The payload data to store. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#