ETASCOM CRM V3 - Documentation API
    Preparing search index...
    • POST(
          req: NextRequest,
          __namedParameters: { params: Promise<{ id: string }> },
      ): Promise<
          | NextResponse<{ success: boolean; error: string; message: string }>
          | NextResponse<
              {
                  success: boolean;
                  action: {
                      id: string;
                      description: string
                      | null;
                      nextAction: string | null;
                      actionDate: string;
                      isTechnical: boolean;
                      isPricingRelated: boolean;
                      isTimeSensitive: boolean;
                      user: {
                          avatar: string | null;
                          email: string;
                          id: string;
                          name: string | null;
                      };
                      createdAt: string;
                  };
                  message: string;
              },
          >,
      >

      POST /api/mobile/opportunities/[id]/actions

      Crée une nouvelle action pour une affaire

      Body: { description: string (requis) nextAction?: string actionDate?: string (ISO 8601, défaut: maintenant) isTechnical?: boolean isPricingRelated?: boolean isTimeSensitive?: boolean }

      Parameters

      • req: NextRequest
      • __namedParameters: { params: Promise<{ id: string }> }

      Returns Promise<
          | NextResponse<{ success: boolean; error: string; message: string }>
          | NextResponse<
              {
                  success: boolean;
                  action: {
                      id: string;
                      description: string
                      | null;
                      nextAction: string | null;
                      actionDate: string;
                      isTechnical: boolean;
                      isPricingRelated: boolean;
                      isTimeSensitive: boolean;
                      user: {
                          avatar: string | null;
                          email: string;
                          id: string;
                          name: string | null;
                      };
                      createdAt: string;
                  };
                  message: string;
              },
          >,
      >