UpdateOrganization

Attributes

ObjectId
See ‘object-id’ in object-type: organization.
Name
See ‘name’ in object-type: organization.
Industry

See ‘industry’ in object-type: organization.

Optional

Ticker

See ‘ticker’ in object-type: organization.

Optional

PricingSource

See ‘pricing-source’ in object-type: organization.

Optional

JSON Examples

Example 1:

{
    "UpdateType": "UpdateOrganization",
    "ObjectId": "OBJECT_ID",
    "Name": "United States Treasury",
    "Industry": "Government",
    "Ticker": "T"
}

Example 2:

{
    "UpdateType": "UpdateOrganization",
    "ObjectId": "OBJECT_ID",
    "Name": "Bank of Terra Incognita",
    "PricingSource": "AVCD"
}

check_valid()

Only the participant set in the creator-id is allowed to update an organization using UpdateOrganization. Compare the participant’s key-id against the key used to sign the transaction.

The following checks are performed:

  • Authorization, as described above.
  • Check that all required attributes have been provided.
  • Check that all provided unique attributes do not exist in the store.
  • Check that PricingSource, if provided, is a four-character string.

apply()

Update the new object to match the new data, including removing fields that are not specified. Note that the authorization attribute should be left as-is, since there that is handled with the UpdateOrganizationAuthorization update type.