Propose an AWS referral update for a person to approve

PUT https://api.suger.cloud/org/{orgId}/cosell/referral/{referralId}/agentProposal

Stage a proposed change to an AWS co-sell referral, or record an outcome that needs a person, without changing the referral. The proposal is stored on the referral's metaInfo.partnerOps and shown to the seller on the referral page, where a person approves or rejects it. Use this in Review mode, or when an AWS rep is working the deal: send statusCode UPDATE_PROPOSED with the changed ACE opportunity fields in changes, shaped like the info.aceOpportunityV2 part of a merge=true UpdateCosellReferral body. When a fact needed for the change is missing, send NEEDS_NEXT_STEP, NEEDS_CONTACT, NEEDS_ADDRESS or NEEDS_OTHER with a reason and no changes; DUPLICATE_FOUND, BLOCKED_SENSITIVE and BLOCKED_PAYLOAD record those outcomes the same way. A new proposal replaces one already waiting. A proposed change must meet the rules an AI agent update meets: the referral is ACTIVE, IN_REVIEW, ACTION_REQUIRED or UPDATE_FAILED and stays open, no field that has a value is blanked, and the new text carries no other cloud's name, email address, phone number, pricing or discount term. A refused proposal returns 400 and stores nothing. A proposed change sent by one of the Co-sell Agent's own runs (one carrying runId) is one of its tries on the referral, and is also refused with 400 (a skip, not a failure) while an update applied to the referral waits on AWS's re-score -- until AWS changes the score or co-sell motion, or 48 hours after it was applied -- and after 3 tries with the same skill, until a person resets them. A proposal with no runId -- one a person asks for through chat or another MCP client -- is recorded but spends none of the agent's tries and is held to neither rule. A proposed change keeps only the fields whose value differs from the referral's (text compared ignoring case and spacing, lists in any order); when none is left nothing is stored and the call returns 200 with the unchanged state and a note starting "no change". A proposal whose predictedScore is lower than AWS's current score is not stored: the call returns 200 with the unchanged state and a note saying why. Every proposal and outcome is also recorded in the referral's metaInfo.partnerOpsRuns, which keeps the last 10. To propose filing an AWS MPOPP funding application for the referral's deal, send kind fund-request with statusCode UPDATE_PROPOSED and the application in fundRequest.awsBenefitApplication (check it with ValidateFundingApplicationPayload first), naming this referral's ACE opportunity in its AssociatedResources, plus a one-sentence fundRequest.summary for the approval card. It waits in metaInfo.partnerOps.fundRequest, beside any referral change waiting in proposal, and replaces only an earlier fund request. Approving it files the application as the approver. It is refused with 400 when the opportunity already has a funding application in any status (drafts included), when the program is not MPOPP:Activate or MPOPP:Grow, or when the payload fails validation; the closed-deal, blank-field, never-share, 24-hour CRM-edit and re-score rules above apply only to referral changes, while the 3-tries-per-skill limit applies to both.

Parameters

NameInTypeRequiredDescription
orgId path string yes Organization ID
referralId path string yes Referral ID

Request Body

Required. Content-Type: application/json · Schema: ProposeCosellReferralUpdateRequest

ProposeCosellReferralUpdateRequest fields:

FieldTypeRequiredDescription
autoSubmit boolean no AutoSubmit files a fund-request right away instead of waiting for a person. Set only by Fours' own Co-sell Agent in Auto mode; ignored without runId.
blockedFields object no BlockedFields maps a field's path to why it was left unchanged, e.g. {"LifeCycle.TargetCloseDate": "no close date in the Salesforce opportunity or the calls"}. UPDATE_PROPOSED only.
changes AceOpportunityV2 no
fieldSources object no FieldSources maps a changed field's path (e.g. "LifeCycle.TargetCloseDate") to where its value came from, as a seller would recognise it (e.g. "Salesforce opportunity, Close Date"). Required for every date the proposal changes (LifeCycle.TargetCloseDate, SoftwareRevenue.EffectiveDate, SoftwareRevenue.ExpirationDate): a date no source names exactly is left unchanged and listed in BlockedFields instead. UPDATE_PROPOSED only.
fundRequest CosellAgentFundRequest no
kind CosellAgentProposalKind no
predictedScore integer no PredictedScore is the predicted AWS quality score after the change, when checked.
reason string no Reason is the specifics, shown next to the outcome. Required unless StatusCode is UPDATE_PROPOSED.
runBy string no RunBy names the person the agent run acts for (who started it, or who turned nightly runs on). Set by Fours' own Co-sell Agent; recorded as the approver of an AutoSubmit fund-request.
runId string no RunID names the agent run that made the proposal. Set by Fours' own agent; a proposal made in the co-sell chat has none and is recorded as "chat".
skillId string yes SkillID is the skill that made the proposal.
sources array<string> no Sources name where each fact came from.
statusCode CosellAgentStatusCode yes

AceOpportunityV2 fields:

FieldTypeRequiredDescription
AWSLifeCycle LifeCycle no
AWSOpportunityTeam array<AceContact> no AWSOpportunityTeam details the AWS opportunity team, including members involved. This information helps partners know who from AWS is engaged and what their role is.
Arn string no Arn, The Amazon Resource Name (ARN) that uniquely identifies the opportunity. Type: String Pattern: ^arn:.*$
Catalog string no Specifies the catalog associated with the request. This field takes a string value from a predefined list: AWS or Sandbox. The catalog determines which environment the opportunity is created in. Use AWS to create opportunities in the AWS catalog, and Sandbox to test in a secure and isolated environment. Type: String Pattern: ^[a-zA-Z]+$ Required: Yes
CosellMotion string no CosellMotion classifies how AWS is engaging with this opportunity. Operational classification produced by AWS's routing model — not an analytical insight. Populated asynchronously after submission; empty string until classified. Values are extensible — new motions may be added without notice. Type: String Known Values: AWS Field-engaged | Agent-engaged | Partner-led
CreatedDate string no DateTime when the Opportunity was last created.
Customer Customer no
Id string no ID Read-only, system generated Opportunity unique identifier. Type: String Pattern: ^O[0-9]{1,19}$
Insights Insights no
InvolvementType string no InvolvementType specifies the type of involvement AWS has in the opportunity, such as direct cosell or advisory support. This field helps partners understand the role AWS plays in advancing the opportunity. Type: String Valid Values: For Visibility Only | Co-Sell
InvolvementTypeChangeReason string no InvolvementTypeChangeReason provides a reason for any changes in the involvement type of AWS in the opportunity. This field is used to track why the level of AWS engagement has changed from For Visibility Only to Co-sell offering transparency into the partnership dynamics. Type: String Valid Values: Expansion Opportunity | Change in Deal Information | Customer Requested | Technical Complexity | Risk Mitigation
LastModifiedDate string no DateTime when the opportunity was last modified.
LifeCycle LifeCycle no
Marketing Marketing no
NationalSecurity string no Indicates whether the Opportunity pertains to a national security project. This field must be set to true only when the customer's industry is Government. Additional privacy and security measures apply during the review and management process for opportunities marked as NationalSecurity. Type: String Valid Values: Yes | No Required: No
OpportunityTeam array<AceContact> no Represents the internal team handling the opportunity. Specify the members involved in collaborating on this opportunity within the partner's organization. Type: Array of Contact objects Array Members: Minimum number of 0 items. Maximum number of 1 item. Required: No
OpportunityType string no Specifies the opportunity type as a renewal, new, or expansion. Opportunity types: New opportunity: Represents a new business opportunity with a potential customer that's not previously engaged with your solutions or services. Renewal opportunity: Represents an opportunity to renew an existing contract or subscription with a current customer, ensuring continuity of service. Expansion opportunity: Represents an opportunity to expand the scope of an existing contract or subscription, either by adding new services or increasing the volume of existing services for a current customer. Type: String Valid Values: Net New Business | Flat Renewal | Expansion Required: No
Origin string no Specifies the origin of the opportunity, indicating if it was sourced from AWS or the partner. For all opportunities created with Catalog: AWS, this field must only be Partner Referral. However, when using Catalog: Sandbox, you can set this field to AWS Referral to simulate AWS referral creation. This allows AWS-originated flows testing in the sandbox catalog. Type: String Valid Values: AWS Referral | Partner Referral Required: No
PartnerOpportunityIdentifier string no Specifies the opportunity's unique identifier in the partner's CRM system. This value is essential to track and reconcile because it's included in the outbound payload sent back to the partner. This field allows partners to link an opportunity to their CRM, to ensure seamless integration and accurate synchronization between the Partner Central API and the partner's internal systems. Type: String Length Constraints: Minimum length of 0. Maximum length of 64. Required: No
PrimaryNeedsFromAws array<string> no Identifies the type of support the partner needs from AWS. Valid values: Co-Sell - Architectural Validation: Confirmation from AWS that the partner's proposed solution architecture is aligned with AWS best practices and poses minimal architectural risks. Co-Sell - Business Presentation: Request AWS seller's participation in a joint customer presentation. Co-Sell - Competitive Information: Access to AWS competitive resources and support for the partner's proposed solution. Co-Sell - Pricing Assistance: Connect with an AWS seller for support situations where a partner may be receiving an upfront discount on a service (for example: EDP deals). Co-Sell - Technical Consultation: Connect with an AWS Solutions Architect to address the partner's questions about the proposed solution. Co-Sell - Total Cost of Ownership Evaluation: Assistance with quoting different cost savings of proposed solutions on AWS versus on-premises or a traditional hosting environment. Co-Sell - Deal Support: Request AWS seller's support to progress the opportunity (for example: joint customer call, strategic positioning). Co-Sell - Support for Public Tender / RFx: Opportunity related to the public sector where the partner needs AWS RFx support. Do Not Need Support from AWS Sales Rep: Indicates that a partner doesn't need support from an AWS sales representative, and the partner solely manages the opportunity. It's possible to request co-selling support on these opportunities at any stage during their lifecycle. Also known as, for-visibility-only (FVO) opportunity. Type: Array of strings Valid Values: Co-Sell - Architectural Validation | Co-Sell - Business Presentation | Co-Sell - Competitive Information | Co-Sell - Pricing Assistance | Co-Sell - Technical Consultation | Co-Sell - Total Cost of Ownership Evaluation | Co-Sell - Deal Support | Co-Sell - Support for Public Tender / RFx Required: No
Project Project no
RelatedEntityIdentifiers RelatedEntityIdentifiers no
SoftwareRevenue SoftwareRevenue no
Visibility string no Visibility defines the visibility level for the AWS Opportunity. Use Full visibility for most cases, while Limited visibility is reserved for special programs or sensitive opportunities. Type: String Valid Values: Full | Limited

CosellAgentFundRequest fields:

FieldTypeRequiredDescription
awsBenefitApplication BenefitApplication yes
fundingApplicationId string no FundingApplicationID is the funding application filed from this request; empty until filed.
hubspotDealId string no
salesforceOpportunityId string no SalesforceOpportunityID and HubspotDealID link the application to the CRM deal, when known.
summary string no Summary is one sentence for the approval card, e.g. "$12,000 MPOPP Activate credit for the Acme private offer".

LifeCycle fields:

FieldTypeRequiredDescription
ClosedLostReason string no
NextSteps string no
NextStepsHistory array<NextStepsHistory> no
ReviewComments string no
ReviewStatus string no
ReviewStatusReason string no
Stage string no
TargetCloseDate string no

AceContact fields:

FieldTypeRequiredDescription
BusinessTitle string no
Email string no
FirstName string no
LastName string no
Phone string no

Customer fields:

FieldTypeRequiredDescription
Account Account no
Contacts array<AceContact> no

Insights fields:

FieldTypeRequiredDescription
EngagementScore string no EngagementScore represents a score assigned by AWS to indicate the level of engagement and potential success for the opportunity. This score helps partners prioritize their efforts. Type: String Valid Values: High | Medium | Low Required: No
NextBestActions string no NextBestActions provides recommendations from AWS on the next best actions to take in order to move the opportunity forward and increase the likelihood of success. Type: String Required: No
OpportunityQuality OpportunityQuality no
Recommendations array<Recommendation> no Recommendations is the list of AI-generated suggestions to improve opportunity quality. Each entry identifies its source (Type), provides human-readable guidance (Details), and optionally includes metadata (Attributes). The list grows over time as new Type values are added.

Marketing fields:

FieldTypeRequiredDescription
AwsFundingUsed string no
CampaignName string no
Channels array<string> no
Source string no
UseCases array<string> no

Project fields:

FieldTypeRequiredDescription
AdditionalComments string no
ApnPrograms array<string> no
CompetitorName string no
CustomerBusinessProblem string no
CustomerUseCase string no
DeliveryModels array<string> no
ExpectedCustomerSpend array<ExpectedCustomerSpend> no
OtherCompetitorNames string no
OtherSolutionDescription string no
RelatedOpportunityIdentifier string no
SalesActivities array<string> no
Title string no

RelatedEntityIdentifiers fields:

FieldTypeRequiredDescription
AwsMarketplaceOffers array<string> no
AwsProducts array<string> no
Solutions array<string> no

SoftwareRevenue fields:

FieldTypeRequiredDescription
DeliveryModel string no
EffectiveDate string no
ExpirationDate string no
Value MonetaryValue no

BenefitApplication fields:

FieldTypeRequiredDescription
Arn string no
AssociatedResources array<string> no
Attributes object no
BenefitApplicationDetails object no
BenefitId string no
Catalog string no
CreatedAt string no
Description string no
FileDetails array<FileDetail> no
FulfillmentTypes array<FulfillmentType> no
Id string no
Name string no
PartnerContacts array<AceContact> no
Programs array<string> no
Revision string no
Stage string no
Status BenefitApplicationStatus no
StatusReason string no
StatusReasonCodes array<string> no
UpdatedAt string no

Responses

200 — The referral's agent state after the proposal

Content-Type: application/json · Schema: CosellAgentReferralState

CosellAgentReferralState fields:

FieldTypeRequiredDescription
approvedAt string no
approvedBy string no ApprovedBy and ApprovedAt record the person who approved the latest proposal.
attemptsBySkill object no AttemptsBySkill counts the agent's tries on this referral per skill: each proposal and each Auto save, rejected ones included; a NEEDS_/BLOCKED_ outcome is not a try. Kept here rather than counted from metaInfo.partnerOpsRuns, which holds only the last 10 records. At CosellAgentMaxAttempts the agent may not try again until a person resets it.
awsScoreBefore integer no AwsScoreBefore is AWS's quality score just before the agent's latest update, and AwsScoreBeforeAt when it was read, so the improvement can be shown.
awsScoreBeforeAt string no
cosellMotionBefore string no CosellMotionBefore is AWS's co-sell motion just before the agent's latest update, for the Agent-engaged -> AWS Field-engaged flip. Kept here, not read from the newest run record, which a later NEEDS_/SKIPPED_ record taken after the update would replace.
fundRequest CosellAgentProposal no
lastRejection CosellAgentRejection no
lastRejectionBySkill object no LastRejectionBySkill records each skill's latest rejected proposal, so a skill's pick query skips the referral for a while after a person rejected that skill's proposal. LastRejection keeps only referral changes, so a rejected fund request does not hold back the enhancer.
lastSkippedAt string no LastSkippedAt is when an agent run last worked this referral and stored nothing: every value it would set already matched (no change), or the change was predicted to score lower. Neither is a try nor moves the rescore cooldown, so the skill's pick query (referral-repair.md) holds the referral for 7 days from this instead; without it a nightly run re-picks and re-researches the same referral every night.
lifecycle CosellAgentLifecycle no
note string no Note is set only on a ProposeCosellReferralUpdate response, to say why nothing was stored (e.g. the proposal was predicted to score lower than AWS's current score). Never stored.
proposal CosellAgentProposal no
reason string no Reason is the specifics behind StatusCode, e.g. "No dated next step in any source".
skillId string no SkillID is the skill that produced the latest outcome.
statusCode CosellAgentStatusCode no
updatedAt string no UpdatedAt is when this state last changed.

CosellAgentProposal fields:

FieldTypeRequiredDescription
blockedFields object no BlockedFields maps a field's path to why the agent left it unchanged, e.g. a close date no source names ("no date in Salesforce or calls").
changes object no Changes are the ACE opportunity fields to change, shaped like the info.aceOpportunityV2 part of a merge=true update body. referral-update only.
fieldSources object no FieldSources maps a changed field's path (e.g. "LifeCycle.TargetCloseDate") to where its value came from (e.g. "Salesforce opportunity, Close Date"). Every changed date has one.
fundRequest CosellAgentFundRequest no
kind CosellAgentProposalKind no
predictedScore integer no PredictedScore is the predicted AWS quality score after the change, when checked.
proposedAt string yes
skillId string no SkillID is the skill that made this proposal. partnerOps.skillId names the skill of the latest outcome, which a later NEEDS_ outcome from another skill replaces while this proposal waits.
sources array<string> no Sources name where each fact came from (e.g. "Gong call on Sep 19").

CosellAgentRejection fields:

FieldTypeRequiredDescription
at string yes
by string no
reason string no

CosellAgentFundRequest fields:

FieldTypeRequiredDescription
awsBenefitApplication BenefitApplication yes
fundingApplicationId string no FundingApplicationID is the funding application filed from this request; empty until filed.
hubspotDealId string no
salesforceOpportunityId string no SalesforceOpportunityID and HubspotDealID link the application to the CRM deal, when known.
summary string no Summary is one sentence for the approval card, e.g. "$12,000 MPOPP Activate credit for the Acme private offer".

BenefitApplication fields:

FieldTypeRequiredDescription
Arn string no
AssociatedResources array<string> no
Attributes object no
BenefitApplicationDetails object no
BenefitId string no
Catalog string no
CreatedAt string no
Description string no
FileDetails array<FileDetail> no
FulfillmentTypes array<FulfillmentType> no
Id string no
Name string no
PartnerContacts array<AceContact> no
Programs array<string> no
Revision string no
Stage string no
Status BenefitApplicationStatus no
StatusReason string no
StatusReasonCodes array<string> no
UpdatedAt string no

FileDetail fields:

FieldTypeRequiredDescription
BusinessUseCase string no Project Plan/Checklist", "Innovation Plan", "Marketing Plan", " Proof of Cost", "Assess Analysis Report", "Well Architected Review Report", "Success Criteria Report", "Customer Sign Off Template", "Partner Sign Off Template", "Customer Satisfaction Survey (CSAT)", "Migration Capability Review", "Other"
CreatedAt string no
FileName string no ^[a-zA-Z0-9._-]+$
FileStatus string no PENDING, SUCCEDED, FAILED
FileType string no Valid mime type:application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/pdf, image/png, image/jpeg, image/svg+xml, text/csv
FileURI string no
UpdatedAt string no

AceContact fields:

FieldTypeRequiredDescription
BusinessTitle string no
Email string no
FirstName string no
LastName string no
Phone string no

400 — Bad request error

Content-Type: application/json · Schema: ErrorResponse

ErrorResponse fields:

FieldTypeRequiredDescription
code ErrorCode no
info object no
message string no

404 — Referral not found

Content-Type: application/json · Schema: ErrorResponse

ErrorResponse fields:

FieldTypeRequiredDescription
code ErrorCode no
info object no
message string no

500 — Internal server error

Content-Type: application/json · Schema: ErrorResponse

ErrorResponse fields:

FieldTypeRequiredDescription
code ErrorCode no
info object no
message string no

Example

Generated from this operation's schema. Values are placeholders — substitute your own ids, and set SUGER_TOKEN to a bearer token from the OAuth client-credentials exchange.

Request

curl -X PUT 'https://api.suger.cloud/org/{orgId}/cosell/referral/{referralId}/agentProposal' \
  -H "Authorization: Bearer $SUGER_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "skillId": "01H0000000000000000000",
  "statusCode": "UPDATE_PROPOSED"
}'

Response — 200

{
  "approvedAt": "2026-01-31T12:00:00Z",
  "approvedBy": "string",
  "attemptsBySkill": {},
  "awsScoreBefore": 1,
  "awsScoreBeforeAt": "2026-01-31T12:00:00Z",
  "cosellMotionBefore": "string",
  "fundRequest": {
    "proposedAt": "2026-01-31T12:00:00Z",
    "blockedFields": {},
    "changes": {},
    "fieldSources": {},
    "fundRequest": {
      "awsBenefitApplication": {
        "Arn": "string",
        "AssociatedResources": [
          "string"
        ],
        "Attributes": {},
        "BenefitId": "01H0000000000000000000",
        "Catalog": "string",
        "CreatedAt": "string",
        "Description": "string",
        "FileDetails": [
          {}
        ],
        "FulfillmentTypes": [
          "CREDITS"
        ],
        "Id": "01H0000000000000000000",
        "Name": "Acme Corp"
      },
      "fundingApplicationId": "01H0000000000000000000",
      "hubspotDealId": "01H0000000000000000000",
      "salesforceOpportunityId": "01H0000000000000000000",
      "summary": "string"
    },
    "kind": "referral-update",
    "predictedScore": 1,
    "skillId": "01H0000000000000000000",
    "sources": [
      "string"
    ]
  },
  "lastRejection": {
    "at": "2026-01-31T12:00:00Z",
    "by": "string",
    "reason": "string"
  },
  "lastRejectionBySkill": {},
  "lastSkippedAt": "2026-01-31T12:00:00Z",
  "lifecycle": "PROPOSED",
  "note": "string"
}

Error — 400

{
  "code": "InternalServerError",
  "message": "string"
}

View as Markdown · API reference overview

Spotted something wrong or out of date on this page? Tell us and we'll correct it.